<template>
  <div>
    <h1>hell,你好{{ name }}</h1>

    <el-radio v-model="optionTest" label="1">备选项1</el-radio>
    <el-radio v-model="optionTest" label="2">备选项2</el-radio>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "张三",
      //代表默认选中label为2的单选框
      optionTest: '2'
    };
  },
};
</script>

<style>
</style>